package com.anlu.concurrent.ch5;

import java.util.concurrent.ConcurrentHashMap;

/**
 * <p>
 * Description:TODO 详细描述
 * <p>
 * Copyright: 天津联想协同科技有限公司
 * <p>
 *
 * @author anlu
 * @date 2021/10/27 14:14
 */
public class ChmDemo {
    public static void main(String[] args) {
        ConcurrentHashMap<String,String> map = new ConcurrentHashMap<>();
        map.put("001", "001_value");
        map.put("002", "002_value");
        map.put("003", "003_value");

        System.out.println("---------------------------------------");
        System.out.println("002="+map.get("002"));
        map.put("002", "002_value_2nd");
        System.out.println("002="+map.get("002"));
    }
}
